package com.cg.controller;

import com.cg.dto.Dto;
import com.cg.service.DmAreaService;
import com.cg.vo.CityVo;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;

/**
 * 区域表(DmArea)表控制层
 *
 * @author makejava
 * @since 2023-11-09 16:20:18
 */
@RestController
@RequestMapping("/area")
public class DmAreaController {
    /**
     * 服务对象
     */
    @Resource
    private DmAreaService dmAreaService;

    //查询市区API接口
    @PostMapping("/queryCityList")
    public Dto<List<CityVo>> queryCityList(){
        return dmAreaService.queryCityList();
    }

}

